import React from 'react';
export default class Loading extends React.Component {
    render() {
        return (
            <div className="components loading">
                <div className="outer">{this.props.text}</div>
                <div className="inner"></div>
            </div>
        )
    }
}

Loading.propTypes = {
    text:React.PropTypes.string
};

Loading.defaultProps = {
    text:'加载中'
};